package com.example.dynamicdatabase.mapper;

import com.example.dynamicdatabase.databasemodel.DataBaseInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @Description TODO
 * @Author 奶茶
 * Created by on 2018/11/25 15:43.
 */
@Mapper
public interface DataBaseInfoMapper {

    @Select("SELECT * FROM DATABASEINFO WHERE APPKEY = #{appKey}")
    DataBaseInfo getDataBaseInfoByAppKey(@Param(value = "appKey")String appKey);

}
